package myky.com.doctorapp.contract;

import io.reactivex.Observable;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.base.BaseView;
import myky.com.doctorapp.entity.LogoutEntity;
import myky.com.doctorapp.entity.PreRequestEntuty;

public interface ChangePassWordContract {
    interface Model {
        Observable<PreRequestEntuty> upPassWord();

        Observable<PreRequestEntuty> upPassWord(String oldPwd, String newPwd, String confirmPwd);

        Observable<BaseEntity<LogoutEntity.PayLoadBean>>logout();

    }

    interface View extends BaseView<String> {

        void changePwdSuccesed();

        void setButtonEnable();

        void changePwdFailed(String message);

        void logout();
    }

    interface Presenter {

        void upPassWord(String oldPwd, String newPwd, String confirmPwd);

        void plogout();

    }
}
